package com.bumptech.glide.load.resource.transcode;

import android.graphics.Bitmap;
import com.bumptech.glide.load.engine.Resource;
import com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable;
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.load.resource.gifbitmap.GifBitmapWrapper;

public class GifBitmapWrapperDrawableTranscoder
  implements ResourceTranscoder<GifBitmapWrapper, GlideDrawable>
{
  private final ResourceTranscoder<Bitmap, GlideBitmapDrawable> bitmapDrawableResourceTranscoder;

  public GifBitmapWrapperDrawableTranscoder(ResourceTranscoder<Bitmap, GlideBitmapDrawable> paramResourceTranscoder)
  {
    this.bitmapDrawableResourceTranscoder = paramResourceTranscoder;
  }

  public String getId()
  {
    return "GifBitmapWrapperDrawableTranscoder.com.bumptech.glide.load.resource.transcode";
  }

  public Resource<GlideDrawable> transcode(Resource<GifBitmapWrapper> paramResource)
  {
    GifBitmapWrapper localGifBitmapWrapper = (GifBitmapWrapper)paramResource.get();
    Resource localResource = localGifBitmapWrapper.getBitmapResource();
    if (localResource != null)
      return this.bitmapDrawableResourceTranscoder.transcode(localResource);
    return localGifBitmapWrapper.getGifResource();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.bumptech.glide.load.resource.transcode.GifBitmapWrapperDrawableTranscoder
 * JD-Core Version:    0.6.2
 */